package com.changhong.controller;

import com.changhong.annotation.Controller;
import com.changhong.annotation.RequestMapping;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by Administrator on 2018/10/12
 */
@Controller("testController")
public class TestController {

    @RequestMapping("/test")
    public void test(HttpServletResponse httpServletResponse) {
        try {
            httpServletResponse.getWriter().write("test");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
